package com.example.resserver.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.security.Principal;

@RestController
public class HelloController {
    @GetMapping("/api/hello")
    public String sayHello(Principal principal){
        return "Hello!" + principal.getName();
    }
}
